<?php
$pageName = "lohout.php";

?>
<html>
    <?php include("includes/header.php"); ?>
    <body>
        <?php
        //  Find the session
        session_start();

        //  Unset all the session variables
        $_SESSION = array();

        // Destroy the session cookie
        if (isset($_COOKIE[session_name()])) {
            setcookie(session_name(), '', time() - 42000, '/');
        }

        //  Destroy the session
        session_destroy();

        header('Location: Login.php');
        ?>
    </body>
</html>